package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetBankDTO;
import lombok.Data;

import java.io.Serializable;


/**
 * 代理银行信息
 *
 * @author hlp
 * @email
 * @date 2023-02-02 09:04:57
 */
@Data
public class BankVO implements Serializable {
    private static final long serialVersionUID = 1L;

    //唯一标识号
    private Long bankid;
    //行政区划
    private Long cantonid;
    //银行名称
    private String bankname;
    //帐户名称
    private String accountname;
    //帐号
    private String accountcode;
    //是否可用
    private Integer isenable;
    //操作时间
    private String writetime;
    //银行编码
    private String bankcode;
    //联行行号
    private String banklinenum;
    //银行类别
    private String bankcls;
    //1通过2修改3差错
    private Integer operate;
    //描述差错
    private String memo;
    //1新增2修改3删除
    private int state;
    private String cantoncode;
    private String cantonname;

    private Integer id;
    private String paybankdt;
    private Long amt;
    private Long payerbank;
    private  Integer num;

    public BankVO() {
    }

    public BankVO(SetBankDTO bean) {
        this.bankid = Long.valueOf(bean.getBankid());
        this.cantonid = Long.valueOf(bean.getCantonid());
        this.bankcode = bean.getBankcode();
        this.accountcode = bean.getAccountcode();
        this.accountname = bean.getAccountname();
        this.bankname = bean.getBankname();
        this.banklinenum = bean.getBanklinenum();
        this.bankcls = bean.getBankcls();
        if (bean.getState() != null) {
            this.state = Integer.valueOf(bean.getState());
        }
        this.memo = bean.getMemo();
    }


}
